package com.ymatou.iapi.productmanager.parameter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public enum TabStatus {
	//销售中
	OnSale(0),
	
	//待上架
	OnNotSale(4),
	
	//售罄
	SaleOut(6),
	
	//直播中的商品
	InLive(7),
	
	//All
	All(-1);
	
	
	private int code;

    private TabStatus(int code) {
        this.code = code;
    }
    
    public int getCode() {
        return code;
    }
    
    public static void main(String[] args){
    	System.out.println(TabStatus.OnSale.getCode());
    	
    	List<String> a = Arrays.asList("d","s","d","e","es");
    	List<String> b = a.stream().filter(x->x.equals("d")).collect(Collectors.toList());
    	System.out.println(a.size());
    	System.out.println(b.size());
    }
}
